"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.bulkInsert(
      "Grades",
      [
        {
          name: '大一',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: '大二',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: '大三',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: '大四',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: '大五',
          createdAt: new Date(),
          updatedAt: new Date(),
        }
      ],
      {}
    );
  },

  async down(queryInterface, Sequelize) {
    await queryInterface.bulkDelete("Grades", null, {});
  },
};
